/<template>
  <div class="BuildingDy">
    <div v-for="(item, index) in uulist" :key="index" class="box">
      <div class="box1">
        <span></span><span>动态</span><span>{{ item.create_time }}</span>
      </div>
      <div class="box2">
        <div class="left">
          <img :src="item.img" alt="" />
          <div>
            <h3>{{ item.build_name }}</h3>
            <p class="p1">{{ item.areaname }}</p>
            <p class="p2">
              {{ item.price_type }}{{ item.price2 }}{{ item.price_unit }}
            </p>
          </div>
        </div>
        <div class="right">
          <span>订阅</span>
        </div>
      </div>
      <div class="box3">
        {{ item.title }}
      </div>
      <div class="box4">咨询优惠详情</div>
    </div>
  </div>
</template>

<script>
import uulist11 from "../../../mock/home/BuildingDyNamic.json";
export default {
  data() {
    return {
      uulist: uulist11,
    };
  },
};
</script>

<style lang="scss" scoped>
.BuildingDy {
  width: 100%;
  height: 100%;
  .box {
    width: 100%;
    border-left: 1rpx solid #ccc;
    .box1 {
      width: 100%;
      height: 80rpx;
      display: flex;
      flex-direction: row;
      align-items: center;
      font-size: 24rpx;
      > span:nth-child(1) {
        width: 14rpx;
        height: 14rpx;
        border-radius: 50%;
        background-color: #f7918f;
        margin-right: 30rpx;
      }
      > span:nth-child(2) {
        width: 80rpx;
        height: 40rpx;
        text-align: center;
        line-height: 40rpx;
        background-color: #f7918f;
        border-top-left-radius: 10rpx;
        border-bottom-right-radius: 10rpx;
        color: white;
        margin-right: 10rpx;
      }
      > span:nth-child(3) {
        color: #ccc;
      }
    }
    .box2 {
      width: 90%;
      height: 150rpx;
      margin: 0 auto;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      .left {
        display: flex;
        flex-direction: row;
        > img {
          width: 200rpx;
          height: 100rpx;
          margin: 20rpx 15rpx;
        }
        > div {
          display: flex;
          flex-direction: column;
          > h3 {
            font-size: 25rpx;
            font-weight: bold;
            margin-top: 20rpx;
          }
          .p1 {
            color: #ccc;
            font-size: 22rpx;
          }
          .p2 {
            color: #ccc;
            font-size: 22rpx;
          }
        }
      }
    }
    .box3 {
      width: 100%;
      font-weight: bold;
      font-size: 33rpx;
      text-align: center;
    }
    .box4 {
      width: 50%;
      height: 55rpx;
      text-align: center;
      line-height: 55rpx;
      margin: 20rpx auto;
      border: 1rpx solid #f7918f;
      color: #f7918f;
      background-color: rgba(251, 101, 106, 0.1);
    }
  }
}
</style>